﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ControlModule.Models;

namespace ControlModule.Daos
{
    public class GroupDao
    {
        public static Group GetGroupById(int groupId)
        {
            using (CmDbEntities db = new CmDbEntities())
                return db.Group.FirstOrDefault(l => l.Id == groupId);
        }
    }
}